package com.ruget.ools.log.starter.useful.controller;

import com.ruget.ools.log.starter.annotation.SysLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
/**
 * description 用户控制器
 * create Time at 2022/9/1 9:37
 *
 * @author alice.ruge
 * @since 0.0.7
 */
@RestController
@RequestMapping("/user")
@Api(tags = "用户控制器")
@Slf4j
public class UserController {
    @SysLog("分页查询用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageNum", value = "页码",
                    required = true, type = "Integer"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数",
                    required = true, type = "Integer"),
    })
    @ApiOperation(value = "分页查询用户信息")
    @GetMapping(value = "page/{pageNum}/{pageSize}")
    public String findByPage(@PathVariable Integer pageNum,
                             @PathVariable Integer pageSize) {
        int a = pageNum / pageSize;
        return "OK";
    }
}